﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Store.Manager.ERP.Domain.Entities
{
    public class IncomingOrder
    {
        [SugarColumn(IsPrimaryKey =true)]
        public string OrderNumber { get; set; } // 入库单号
        public string OrganizationCode { get; set; } // 所属组织 ID
        public string SupplierCode { get; set; } // 供应商 ID
        public DateTime IncomingDate { get; set; } // 入库日期

        // 导航属性，用于关联组织和供应商
        public virtual Organization Organization { get; set; }
        public virtual Supplier Supplier { get; set; }

        // 入库单明细集合
        public virtual List<IncomingOrderDetail> IncomingOrderDetails { get; set; }
    }
}
